﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using RenrenDotSDK;
using RenrenDotSDK.Model;
using RenrenDotSDK.APIUtility;
using System.Configuration;

namespace WebApplication1
{
    public partial class welcome : System.Web.UI.Page
    {
        RenrenDotSDK.RenrenApiClient rr = new RenrenApiClient();

        protected void Page_Load(object sender, EventArgs e)
        {
            
        }

        protected void Button2_Click1(object sender, EventArgs e)
        {
            if (Request["action"] != null && Request["action"] != "")
            {
                string url = ConfigurationManager.AppSettings["CallBack"] + "?action=" + "123" ;
                rr.GetAuthorizationCode(url);
            }
            else
            {
                string url = ConfigurationManager.AppSettings["CallBack"];
                rr.GetAuthorizationCode(url);
            }
        }
    }
}